import LayerBase from "../../core/common/LayerBase";


const { ccclass, property } = cc._decorator;
/**
 * LoadingTip
 */
@ccclass

export default class LoadingTip extends LayerBase {

    @property({ type: cc.ProgressBar })
    progressNode: cc.ProgressBar = null;

    updateProgress(progress: number) {
        progress = +progress.toFixed(2);
        this.progressNode.progress = progress;
    }
}
